package com.kevin;

import com.kevin.proxy.RpcClientProxy;

public class ConsumerTest {

    public static void main( String[] args )
    {

        RpcClientProxy rpcClientProxy = new RpcClientProxy();
        IUserService iUserService = rpcClientProxy.clientProxy(IUserService.class, "127.0.0.1",8080);

        System.out.println( "收到服务端结果："+iUserService.getName("123") );
//        Student stu = new Student();
//        stu.setName("consumer");
//        Student res = iUserService.getStudent(stu);//请求参数并没有序列化，服务端接收到执行反射时会报报参数类型不匹配
//        System.out.println("收到服务端结果："+res);
    }
}
